home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gUserObject, gLevelObject, gSimObject, gMenuObject, gVTLgameObject
- if buttonHandler() = 1 then
- repeat with level = 1 to count(the booleanList of gLevelObject)
- if getAt(the booleanList of gLevelObject, level) = 1 then
- exit repeat
- end if
- end repeat
- if level <> the level of gLevelObject then
- set the newLevel of gLevelObject to level
- if the saveEnabled of gMenuObject and gameInProgress(gMenuObject) then
- go("SaveLevel")
- exit
- else
- go("Promotion")
- go(the frame + 1)
- startTimer()
- goToNewLevel(gLevelObject)
- repeat while the timer < 60
- end repeat
- drawUserLevel(gUserObject)
- end if
- end if
- playLevelSound(gLevelObject, level)
- puppetTransition(51, 1)
- go(label("LocMap") + 1)
- showAllActors()
- end if
- end
-